import { Controller } from 'egg';

export default class HomeController extends Controller {
  public async index() {
    const { ctx,service} = this;
    const page = ctx.query.page;
    const result = await service.news.list(page);
    // ctx.body = await ctx.service.test.sayHi('egg');
    ctx.body = result;
  }
}
